Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Feb 9, 2025

We also refactor that handler and extract the logic for each exceptions being handled into separate functions.

We also refactor that handler and extract the logic for each
exceptions being handled into separate functions.
@picnixz picnixz changed the title Use _PyUnicodeError_GetParams for the backslashreplace handler. gh-129173: Use new helpers in the backslashreplace handler Feb 9, 2025
@picnixz picnixz changed the title gh-129173: Use new helpers in the backslashreplace handler gh-129173: extract logic of PyCodec_BackslashReplaceErrors into separate functions Mar 3, 2025
@picnixz picnixz changed the title gh-129173: extract logic of PyCodec_BackslashReplaceErrors into separate functions gh-129173: refactor PyCodec_BackslashReplaceErrors into separate functions Mar 3, 2025
@picnixz picnixz marked this pull request as ready for review March 3, 2025 12:25
@picnixz picnixz requested a review from encukou March 3, 2025 12:25
@picnixz picnixz merged commit 3146a25 into python:main Mar 3, 2025
47 checks passed
@picnixz picnixz deleted the feat/codecs/backslashreplace-handler-129173 branch March 3, 2025 12:58
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…ate functions (python#129895)

The logic of `PyCodec_BackslashReplaceErrors` is now split into separate functions,
each of which handling a specific exception type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants